package com.car.loan.project.xr.mapper;

import com.car.loan.project.xr.domain.LoanStatus;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.Optional;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * 业务状态Mapper接口
 *
 * @author ruoyi
 * @date 2019-11-03
 */
@Repository
public interface LoanStatusMapper extends BaseMapper<LoanStatus> {

    /**
     * 根据业务id 查询业务状态
     * @param loanId
     * @return
     */
    @Select("select * from xr_loan_status where loan_id =#{loanId}")
    Optional<LoanStatus> selectByLoanId(@Param("loanId") long loanId);
}
